import request from '@utils/request'

// 开始宿舍调整流程
export function startChangeProcess (data) {
  return request({
    url: '/blade-change/change/start-process',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 开始退宿流程
export function startOutProcess (data) {
  return request({
    url: '/blade-process_out/process_out/start-process',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 开始入住流程
export function startInProcess (data) {
  return request({
    url: '/blade-process_in/process_in/start-process',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

//  签收事务
export function claimTask (data) {
  return request({
    url: '/work/claim-task',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

//  完成事务
export function completeTask (data) {
  return request({
    url: '/work/complete-task',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}